#import <Foundation/Foundation.h>
#import <objc/runtime.h>
#import <LockInfo/Plugin.h>

#import "FWTotalsPlugin.h"
#import "FWPlugin.h"
#import "FWListViewDelegate.h"
#import "FWListView.h"


@implementation FWTotalsPlugin


// ******************************************************************************************
#pragma mark -
#pragma mark Table view counters

- (NSInteger)tableView:(LITableView*)tableView totalNumberOfItemsInSection:(NSInteger)section
{
    if ([fwDatasource respondsToSelector:@selector(tableView:totalNumberOfItems:preferences:)])
        return [fwDatasource tableView:tableView totalNumberOfItems:self.fwApplication preferences:self.preferences];
    else
        return self.items.count;
}


@end
